package com.ecb.business.controller;

import com.ecb.business.dto.api.ApiResult;
import com.ecb.business.dto.audit.SearchAuditDTO;
import com.ecb.business.service.AuditService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("audit")
public class AuditController {

    @Autowired
    AuditService auditService;

    @GetMapping("searchAudit")
    public ApiResult healthCheck(@RequestBody SearchAuditDTO searchAuditDTO){
        return ApiResult.T(auditService.searchAudit(searchAuditDTO));
    }

}
